package com.zg.indiv.domain.req.space;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
* @author lixin
*/
@Data
public class IndivSpaceEditReq {
    @ApiModelProperty(value = "空间ID", required = true)
    @NotNull(message = "【空间ID】字段不能为NULL")
    private Long spaceId;

    @ApiModelProperty(value = "空间名称", required = true)
    @NotEmpty(message = "【空间名称】字段不能为NULL")
    private String name;

    @ApiModelProperty(value = "容量", required = true)
    @NotNull(message = "【容量】字段不能为NULL")
    @Min(value = 1, message = "请选择正确容量")
    private Long capacity;

    @ApiModelProperty(value = "数据类型：0表单，1文件", required = true)
    @NotNull(message = "【数据类型】字段不能为NULL")
    private Integer dataType;

    @ApiModelProperty(value = "表单id")
    private Long formId;

    @ApiModelProperty(value = "支持的文件类型，多个以,隔开")
    private String fileType;

    @ApiModelProperty(value = "文件最大限制")
    private Integer fileMaxSize;
}
